<ui:composition template="/app/template/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">
		<h:form>
			<p:panel header="Rendi impiegato">
				<p>Inserisci l'indirizzo email dell'utente che vuoi rendere
					impiegato.</p>
				<p:messages for="becomeImpiegatoMessage" autoUpdate="true" />
				<h:panelGrid columns="3" id="becomeImpiegatoGrid">
					<h:outputLabel for="mail">Mail:</h:outputLabel>
					<p:inputText id="mail" value="#{utenteBean.rendiImpiegatoMail}" />
					<p:message for="mail" />
				</h:panelGrid>
				<p:commandButton value="Rendi impiegato"
					update="becomeImpiegatoGrid"
					action="#{utenteBean.rendiImpiegato()}" />
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>
